/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package coreservlet;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author steiner
 */
public class HelloServlet2 extends HttpServlet {
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
         String docType = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0" +
                "Transational//PT-BR\">\n";
        out.println(docType + "<html>\n" +
                "<head><title> Hello (2)</title></head>\n"+
                "<body bgcolor=\"#FFFFFF\">\n"+
                "<h1>Hello</h1>\n </body></html>");

    }
}
